//
//  MenuCell.m
//  TopMenu
//
//  Created by liwei on 2017/6/14.
//  Copyright © 2017年 liwei. All rights reserved.
//

#import "MenuCell.h"

@interface MenuCell ()
@property (weak, nonatomic) IBOutlet UILabel *MenuTextLabel;

@end

@implementation MenuCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.autoresizingMask = UIViewAutoresizingNone;
    
    self.MenuTextLabel.textColor = [UIColor lightGrayColor];
    self.MenuTextLabel.font = [UIFont systemFontOfSize:12];
    self.MenuTextLabel.textAlignment = NSTextAlignmentCenter;
    
}

- (void)setSelectedFont:(UIFont *)selectedFont {
    
    _selectedFont = selectedFont;
    self.MenuTextLabel.font = selectedFont;
    self.MenuTextLabel.textColor = [UIColor darkGrayColor];
}

- (void)setNormalFont:(UIFont *)normalFont {
    
    _normalFont = normalFont;
    self.MenuTextLabel.font = normalFont;
    self.MenuTextLabel.textColor = [UIColor lightGrayColor];
}

- (void)setTagTitle:(NSString *)tagTitle {
    
    _tagTitle = tagTitle;
    
    self.MenuTextLabel.text = tagTitle;
}

- (void)prepareForReuse {
    
    [super prepareForReuse];
    self.MenuTextLabel.textColor = [UIColor lightGrayColor];
    self.MenuTextLabel.font = [UIFont systemFontOfSize:12];
}

@end
